import os

from __ROOT import ROOT_DIR


class Hosts:
    class Localhost:
        ip = '127.0.0.1'


HOSTS_DICT = {
    '127.0.0.1': '本地',
}


class RedisConfig:
    host = Hosts.Localhost.ip
    port = 6379
    db = 0
    password = 'wtgg'


class RedisNames:
    坐标点_去重 = 'GMS:坐标点_去重'  # set
    坐标点 = 'GMS:坐标点'  # list
    坐标点nodes = 'GMS:坐标点nodes'  # list


class Application:
    name = '谷歌街景采集工具'
    name_en = 'GMS'
    version = '0.0.1'
    author = 'wtgg'
    email = 'wtlit@qq.com'
    description = '这是一个谷歌街景采集系统'


LOG_LEVEL = 'INFO'
LOG_FILE = os.path.join(ROOT_DIR, f'{Application.name}.log')
